//
//  AreaDropDownListView.h
//  PigMarket
//
//  Created by mac on 2019/3/28.
//  Copyright © 2019 felix.pigmarket.oc. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger,AreaType) {
    AreaTypeProvince = 1,
    AreaTypeCity,
    AreaTypeDistrict,
    AreaTypeTribe
};

typedef void (^SelectAreaBlock)(NSString *area, NSNumber *currentId, AreaType areaType);

@interface AreaDropDownListView : UIView

/**
 选择回调
 */
@property (nonatomic , copy) SelectAreaBlock selectAreaBlock;
+ (instancetype)sharedInstance;
- (void)showWithFrame:(CGFloat)topSpace type:(AreaType)type areaArr:(NSArray *)areaArr;
- (void)hide;
@end

